package com.pap.obj.vo.business;

public enum KeyOperationValueEnum {

	/**
	 * 
	 */
    EQUALS("EQUAL", "相等", ""), 
    /**
     * 
     */
    MY_NOT_EQUAL("MY_NOT_EQUAL", "不相等", "myNotEqual_"), 
    /**
     * 
     */
    MY_GREATER("MY_GREATER", "大于", "myGreater_"), 
    /**
     * 
     */
    MY_LESSER("MY_LESSER", "小于", "myLesser_"), 
    /**
     * 
     */
    MY_LIKE("MY_LIKE", "全模糊匹配", "myLike_"), 
    /**
     * 
     */
    MY_LIKE_START("MY_LIKE_START", "左模糊匹配", "myLikeStart_"), 
    /**
     * 
     */
    MY_LIKE_END("MY_LIKE_END", "右模糊匹配", "myLikeEnd_"), 
    /**
     * 
     */
    MY_IN("MY_IN", "包含", "myIn_");
    
    private String key;
	
    private String value;
    
    private String prop;
    
    private KeyOperationValueEnum(String key, String value, String prop) {
        this.key = key;
        this.value = value;
        this.prop = prop;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

	public String getProp() {
		return prop;
	}

	public void setProp(String prop) {
		this.prop = prop;
	}
	
	public static KeyOperationValueEnum getKeyOperationValueEnumByKey(String key){  
	   for(KeyOperationValueEnum sexEnum : KeyOperationValueEnum.values()){  
	     if(key.equals(sexEnum.getKey())){  
	       return sexEnum;  
	     }  
	   }  
	   return null;  
	 }  
	
}
